package ch1;

import java.util.Scanner;

public class Zuoye030814 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入一个正整数：");
        int a=scan.nextInt();
        int b=0;
        int i=0;
        while (a!=0){
            b=a%10;
            a=a/10;
            i=i*10+b;
        }
        System.out.println("倒转后加上1024的结果是："+(i+1024));
    }
}
